var fs = require('fs');
var express = require('express');

var router = module.exports = express.Router();
var muti = require('connect-multiparty')();
//


router.post('/', muti, function (req, res) {


   fs.rename(req.files['img-file'].path,'public/images/1.jpg');



    res.render('upload');





})




router.get('/', function (req, res) {

    res.render('upload');

});

